<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>

<html>
    <head>
        <title>OSDiary</title>
        <link href="css/default.css" rel="stylesheet" type="text/css" />
        <meta content="text/html; charset=utf-8" http-equiv="content-type">
        <script src="js/prototype.js" type="text/javascript"></script>
        <sx:head />
    </head>
    <body>

        <jsp:include page="WEB-INF/jspparts/logo.jsp" />

        <div id="content">

            <jsp:include page="WEB-INF/jspparts/sidebar.jsp" />

            <div id="main">
                <div id="welcome" class="post">

                    <s:form action="showEvents" method="post" theme="simple">
                        <table>
                            <tr>
                                <td><s:property value="%{getText('fromDate')}"/></td>
                                <td><sx:datetimepicker name="fromDateString" displayFormat="%{getText('dateFormat')}" /></td>
                            </tr>
                            <tr>
                                <td><s:property value="%{getText('fromTime')}"/></td>
                                <td><sx:datetimepicker type="time" name="fromTimeString" /></td>
                            </tr>
                            <tr>
                                <td><s:property value="%{getText('toDate')}"/></td>
                                <td><sx:datetimepicker name="toDateString" displayFormat="%{getText('dateFormat')}" /></td>
                            </tr>
                            <tr>
                                <td><s:property value="%{getText('toTime')}"/></td>
                                <td><sx:datetimepicker type="time" name="toTimeString" /></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td><s:submit value="%{getText('add')}"/></td>
                            </tr>
                        </table>
                    </s:form>
                    <p>

                    <display:table name="events" requestURI="/showEvents.action" sort="list" pagesize="20">
                        <display:column property="name" titleKey="call" />
                        <display:column property="place" titleKey="place" />
                        <display:column property="displayDate" titleKey="%{getText('date')}" />
                        <display:column property="showLink" titleKey="%{getText('edit')}" />
                        <display:column property="deleteLink" titleKey="%{getText('delete')}" />
                    </display:table>

                </div>
            </div>
            <div id="extra" style="clear: both;"></div>
        </div>

        <jsp:include page="WEB-INF/jspparts/footer.jsp" />

    </body>
</html>
